import { useTheme } from '@/contexts/ThemeContext';
import { appVersion } from '@/utils/envUtils';
import { DefaultFooter } from '@ant-design/pro-components';
import React from 'react';

const Footer: React.FC = () => {
  const themeConfig = useTheme();
  const copyright = themeConfig.footer?.copyright || '';

  return (
    <DefaultFooter
      style={{
        background: 'none',
      }}
      copyright={`${copyright} ${appVersion}`}
    />
  );
};

export default Footer;
